<?php
	include("../lib/lib_dps.php");
	$logedin=islogedin();
	$action=$user_processor;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>用户管理</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE3 {font-size: x-large}
-->
</style>
</head>

<body>

<div class="wrap">
<div id="top">
  <div style="padding-left:27px; padding-top:37px"><a href="index.php"><img alt=""  src="images/logo.jpg" width="261" height="53" border="0" /></a></div>
  <div style="padding-left:92px; padding-top:45px"><a href="routes.html"><img alt=""  src="images/h1.jpg" width="51" height="16" border="0" style="margin-right:82px " /></a><a href="view_trips.php"><img alt=""  src="images/h2.jpg" width="51" height="16" border="0" style="margin-right:92px " /></a><a href="pay_for_trips.php"><img alt=""  src="images/h3.jpg" width="51" height="16" border="0" style="margin-right:87px " /></a><a href="../user_login.php" target="blank"><img alt=""  src="images/h4.jpg" width="51" height="16" border="0" style="margin-right:83px " /></a><a href="contact.html"><img alt=""  src="images/h5.jpg" width="51" height="16" border="0" /></a></div>
  </div>
<div id="content">
<!--*********************************************************************************-->
<div style="padding-left:30px; padding-top:10px">
  <div class="title" style="width:642px "><span class="title" style="width:642px "><img  src="images/what_5.jpg" alt="" width="139" height="16" style="margin-left:12px " /></span></div>
</div>
<div style="padding-left:42px; padding-top:23px; padding-right:40px">
 <form action="<?php echo($user_processor);?>" method="post">
   <strong>用户登录</strong><br /><br />
   EPSN:<br /><input name="ccr_epsn" type="text" value=<?php echo($default_ccr_epsn);?> />
   *如果您对DistRema不是很了解，请不要轻易改动这个变量
   <br />
   <?php
	
	if(!$logedin)
	{
		echo('<label>用户名<br /><input type="text" name="username" /></label><br />');
		echo('<label>密码<br /><input type="password" name="password" /></label><br />');
		echo('<input name="submit" type="submit" value="使用用户名密码登录" /><br />');
	}
	else
	{
		if(isset($_COOKIE["last_page"]))
			echo('<a href='.$_COOKIE["last_page"].'>继续刚才的操作</a><br />');
		$user=get_current_user_obj();
		echo("您好".$user->username.",您已经登录<br />");
		echo('<input name="submit" type="submit" value="更新页面" /><br />');
	}
   ?>
   <br />
   <?php
	if($logedin)
	{
		echo('<strong>用户注销</strong><br /><br />');
		echo('<input name="submit" type="submit" value="注销" /><br />');
	}
	?>
   <br />
   <strong>用户注册</strong><br />
   <input name="submit" type="submit" value="注册用户" />
   <br />
 </form>

 </div>
<span class="link_green_light"><a href="#">
<!--*********************************************************************************-->
</a></span></div>

<div id="footer" class="clear">
<div align="right" class="text1" style="padding-right:28px; padding-top:42px "><a href="index.html" class="text1"><strong>主页</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="text_green">|</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="routes.html" class="text1"><strong>浏览所有线路</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="text_green">|</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="view_trips.php" class="text1"><strong>我的行程</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="text_green">|</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="pay_for_trips.php" class="text1"><strong>在线付款</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="text_green">|</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../user_login.php" target="blank" class="text1"><strong>用户管理</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="text_green">|</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="contact.html" class="text1"><strong>联系我们</strong></a><br />
<br style="line-height:5px " />
Copyright &copy; Cacomand Inc., 2008&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="DistRema.html" class="text_orange">Visit Cacomand</a></div>
</div>
</div>
</body>
</html>